Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

This is a good question, and an enhancement to be addressed...

Sometime in the future (not saying when) you'll be able to have an edit box and be able to assign a hidden tag. Right now we don't have that in there.

But here's how you can get around it.

On the 'afterPageLoad' event for the XPage put the following...
getComponent('inputText1').rendererType = 'javax.faces.Hidden'
...with 'inputText1' being the edit box name you wish to be hidden.

This will hide the value at runtime.

Here's an example in full...

<xp:this.afterPageLoad>
<![CDATA[#{javascript:getComponent('inputText1').rendererType = 'javax.faces.Hidden'}]]>
</xp:this.afterPageLoad>
<xp:inputText id="inputText1" value="#{requestScope.val01}"
defaultValue="#{javascript:@Unique()}">
</xp:inputText>
<xp:br></xp:br>
<xp:button value="Submit" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete" immediate="false" save="true"></xp:eventHandler>
</xp:button>
<xp:br></xp:br>
<xp:text escape="true" id="computedField1" value="#{requestScope.val01}"
style="color:rgb(128,0,255);font-weight:bold"></xp:text>


Feedback response number PHAN7PLD4V created by ~George Fronusteretsi on 02/25/2009

XPages and hidden computed fields (~Samuel Nonfoop... 24.Feb.09)
. . Two other ways.... (~Emile Fezgeroz... 25.Feb.09)
. . . . One problem with that... (~Samuel Nonfoop... 25.Feb.09)
. . . . . . Can you gieve us the code, please ?... (~Emile Fezgeroz... 26.Feb.09)
. . . . . . . . Does this help? (~Samuel Nonfoop... 26.Feb.09)
. . . . . . . . . . Yes, thank you :-) (~Emile Fezgeroz... 27.Feb.09)
. . This is a good question, and an enh... (~Joan Zektoomar... 25.Feb.09)
. . . . ComputeWithForm? (~Samuel Nonfoop... 25.Feb.09)
. . . . hidden input field in 8.5.1 (~Hal Churepuloo... 16.Oct.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS